// 继承的核心函数
let extend = (function () {
    function Temp() { };
    return function (Child, Parent) {
        Temp.prototype = Parent.prototype;
        Child.prototype = new Temp();
        Child.prototype.constructor = Child;
    }
}());
// 创建父类
function Father() {
    Father.prototype.lastName = '父亲的lastName';
}
// 创建子类
function Son(...args) {
    // 构造函数式继承：子类构造函数中执行父类构造函数
    Father.call(this, ...args);
}

// 执行继承操作
extend(Son, Father);
// 
Son.prototype.firstName = '孩子的firstName';

var son = new Son();

console.log("%c Line:22 🍢 son.firstName", "color:#4fff4B", son.firstName);
console.log("%c Line:49 🍆 son.lastName", "color:#ed9ec7", son.lastName);
